package com.lkx.farmershop.service;

import com.lkx.farmershop.common.api.ApiResult;
import com.lkx.farmershop.model.dto.LocationDto;
import com.lkx.farmershop.model.dto.LoginDTO;
import com.lkx.farmershop.model.dto.QueryObj;
import com.lkx.farmershop.model.entity.Farmer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lkx.farmershop.model.vo.SimpleUserVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lkx
 * @since 2024-02-05
 */
public interface IFarmerService extends IService<Farmer> {

    String executeRegister(Farmer farmer);

    String executeLogin(LoginDTO dto);

    ApiResult<List<SimpleUserVo>> searchUser(QueryObj queryObj);

    ApiResult<String> updateLocation(LocationDto locationDto);
}
